import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
// import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';

import { ThemeModule } from './@theme/theme.modules';
import { CoreModule } from './@core/core.module';
import {
  NbSidebarModule,
  NbMenuModule,
 } from '@nebular/theme';
import { TablesModule } from './pages/tables/tables.module';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    CommonModule,
    BrowserAnimationsModule,
    ...TablesModule,
    AppRoutingModule,
    FormsModule,
    ThemeModule.forRoot(),
    NbSidebarModule.forRoot(),
    NbMenuModule.forRoot(),
    CoreModule.forRoot(),
    HttpClientModule,
    // HttpClientInMemoryWebApiModule.forRoot(
    //   TableDataService, { dataEncapsulation: false }
    // ),
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
